/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.iwords.service.ao.impl;

import com.iwords.service.ExamSentencesService;
import com.iwords.service.ExamSentencesServiceLocal;
import com.iwords.service.object.ExamSentencesEntity;
import com.iwords.service.persistence.ExamSentencesPersistence;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author qianxiang
 */
@Stateless
public class ExamSentencesServiceImpl implements ExamSentencesService,ExamSentencesServiceLocal{
    
    @EJB
    ExamSentencesPersistence examSentencesPersistence;
    @Override
    public void updateSentences(List<ExamSentencesEntity> sentences) {
       examSentencesPersistence.updateSentences(sentences);
    }

    @Override
    public List<ExamSentencesEntity> getSentenceList(String ids) {
       return examSentencesPersistence.getSentenceList(ids);
    }

    @Override
    public ExamSentencesEntity getSentenceById(Long id) {
        return examSentencesPersistence.getSentenceById(id);
    }

    @Override
    public void updateSentence(ExamSentencesEntity sentence) {
        examSentencesPersistence.updateSentence(sentence);
    }

    
    
}
